package com.lc.sell.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@Api(tags = "主页控制器")
@Controller
@RequestMapping("index")
public class IndexController {

    @GetMapping
    @ApiOperation(value = "跳转到首页")
    public String toIndex(){
        return "page/index";
    }

    @GetMapping("welcome")
    @ApiOperation(value = "跳转到欢迎页")
    public String toWelcome(){
        return "page/welcome";
    }
}
